home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / E.T.O. #4 Installer / ResEdit Install < prev    next >
Text File  |  1991-05-23  |  1KB  |  51 lines

  1. #    R E S E D I T   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990, 1991 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install either ResEdit 1.2, 2.1 or 2.1.1b1 from the
  7. #    E.T.O. #4 distribution compact disk into a folder called "ResEdit Folder"
  8. #    on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {DestVolume}    - the name of the volume from which the Installer was launched
  17. #
  18. #    {ResEditOption}    - a flag used to indicate which version of ResEdit to install
  19. #
  20. #    {Tools}    - the name of the "Tools - Objects" folder
  21. #
  22.  
  23.  
  24. If    "{ResEditOption}" == "1"        ### install ResEdit 1.2
  25.     set Source    "{CDVolume}{Tools}ResEdit:ResEdit 1.2:"
  26. Else If    "{ResEditOption}" == "2"    ### install ResEdit 2.1
  27.     set Source    "{CDVolume}{Tools}ResEdit:ResEdit 2.1:"
  28. Else If    "{ResEditOption}" == "3"    ### install ResEdit 2.1.1b1
  29.     set Source    "{CDVolume}{Tools}ResEdit:ResEdit 2.1.1b1:"
  30. Else
  31.     Exit 1
  32. End
  33.  
  34.  
  35.  
  36. ###    See if a folder called "ResEdit Folder" already exists, 
  37. ###    if so, rename it to "ResEdit Folder.Old"
  38.  
  39. if "`Exists -d "{DestVolume}ResEdit Folder"`"
  40.     if "`Exists -d "{DestVolume}ResEdit Folder.OLD"`"
  41.         Delete -y "{DestVolume}ResEdit Folder.OLD"
  42.     End
  43.  
  44.     Rename -y "{DestVolume}ResEdit Folder"     "{DestVolume}ResEdit Folder.OLD"
  45. End
  46.  
  47. Duplicate -y "{Source}"        "{DestVolume}ResEdit Folder:"
  48.  
  49. ### That's It!
  50.  
  51. Exit 0